package com.etrans.web.gps.business.base.service;


import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.etrans.web.gps.base.service.BaseService;
import com.etrans.web.gps.business.base.domain.VehicleVo;


/**
 * 车辆管理业务层
 * @author liurong
 *
 */
@Service
public class VehicleBaseService extends BaseService {
	
	/**
	 * 根据id查询车辆信息
	 * @param param
	 * @return
	 */
	public List<VehicleVo> queryVehicle(Map<String, Object> map){
		
		return selectList( "vehicleBaseQuery.queryVehicleById", map);
	}
	
	/**
	 * 保存车辆分享期限
	 * @param dbKey
	 * @param map
	 * @return
	 */
	public void saveVehicleShareDate(Map<String, Object> param){
		this.update( "vehiclesMapper.saveVehicleShareDate", param);
	}
	
}
